export default {
  data() {
    return {
      xd: 1
    };
  },
  computed: {
    filterInfo() {
      return this.$route.query;
    },
  },
  methods: {
    // new Functions
    // 除了点击分类与搜索，其他需要跳转的来自这里
    goNewPage(val) {
      console.log('val', val);
      let filter = val.filters ? '&filters='+ val.filters : '';
      let CN = val.CN? '&CN=' + val.CN : "";
      let search = val.search_key ? '&search_key=' + val.search_key : "";
      let sort_by = val.sort_by ? '&sort_by=' + val.sort_by : '';
      let id = val.id ? '&id=' + val.id : '';
      this.go(`/productlist?page=${val.page || 1}` + id +  filter + CN + search + sort_by);
    },
  }
};